package com.zjcloud.academic.domain;

import com.zjcloud.common.annotation.Excel;
import com.zjcloud.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 排课任务对象 ac_schedule_task
 * 
 * @author zjcloud
 * @date 2024-01-01
 */
public class AcScheduleTask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 任务ID */
    private Long id;

    /** 学期ID */
    @Excel(name = "学期ID")
    private Long semesterId;

    /** 任务名称 */
    @Excel(name = "任务名称")
    private String taskName;

    /** 学期 */
    @Excel(name = "学期")
    private String semester;

    /** 状态(0:待处理,1:进行中,2:已完成,3:失败) */
    @Excel(name = "状态", readConverterExp = "0=待处理,1=进行中,2=已完成,3=失败")
    private Integer status;

    /** 进度百分比 */
    @Excel(name = "进度百分比")
    private Integer progress;

    /** 开始时间 */
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /** 结束时间 */
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /** 错误信息 */
    @Excel(name = "错误信息")
    private String errorMessage;

    /** 配置数据(JSON格式) */
    private String configData;

    /** 结果数据(JSON格式) */
    private String resultData;

    /** 备注 */
    @Excel(name = "备注")
    private String remark;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSemesterId(Long semesterId) 
    {
        this.semesterId = semesterId;
    }

    public Long getSemesterId() 
    {
        return semesterId;
    }
    public void setTaskName(String taskName) 
    {
        this.taskName = taskName;
    }

    public String getTaskName() 
    {
        return taskName;
    }
    public void setSemester(String semester) 
    {
        this.semester = semester;
    }

    public String getSemester() 
    {
        return semester;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setProgress(Integer progress) 
    {
        this.progress = progress;
    }

    public Integer getProgress() 
    {
        return progress;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setErrorMessage(String errorMessage) 
    {
        this.errorMessage = errorMessage;
    }

    public String getErrorMessage() 
    {
        return errorMessage;
    }
    public void setConfigData(String configData) 
    {
        this.configData = configData;
    }

    public String getConfigData() 
    {
        return configData;
    }
    public void setResultData(String resultData) 
    {
        this.resultData = resultData;
    }

    public String getResultData() 
    {
        return resultData;
    }
    public void setRemark(String remark) 
    {
        this.remark = remark;
    }

    public String getRemark() 
    {
        return remark;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("semesterId", getSemesterId())
            .append("taskName", getTaskName())
            .append("semester", getSemester())
            .append("status", getStatus())
            .append("progress", getProgress())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("errorMessage", getErrorMessage())
            .append("configData", getConfigData())
            .append("resultData", getResultData())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}